package std.filters;


import net.wimpi.telnetd.io.terminal.ColorHelper
import org.groovymud.shell.io.TerminalIO
import org.junit.Test

class TranslationFilterTest {
    @Test
	public void testDoFilter() {
		def str = ColorHelper.colorizeText("You are standing still somewhere.\r\nHelp!", ColorHelper.BLUE);
		TranslationFilter<TerminalIO> filter = new TranslationFilter<TerminalIO>(language: "fr");
		def ret = filter.doFilter(null, str)
		filter.language = "es"		
		ret = filter.doFilter(null, str)
		filter.language = "it"		
		ret = filter.doFilter(null, str)		
		
		//assert str == filter.doFilter(null, str)
	}
}
